package com.zhongyi.db;

import java.util.List;
import java.util.Map;

/**
 * DBUtil数据库操作类
 * <p>
 *
 * 
 * @author <a href="mailto:lysongfie@gmail.com">songfei</a>
 * @version 1.0,2012-2-27
 */
public interface DBManager {
	
	public List queryForMapList(String sql,Object[] params);
	
	public <T>List<T> queryForBeanList(String sql , Object[] params,Class<T> entityClass);
	
	public Map queryForMap(String sql,Object[] params);
	
	public int insertToDB(String sql,Object[] params);
	
	public int deleteFromDB(String sql , Object[] params);
	
	public int updateDB(String sql , Object[] params);
	
}
